/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const myWorkRouter = {
  path: '/myWork',
  component: Layout,
  redirect: '/myWork/awaitWork',
  name: 'MyWork',
  meta: {
    title: '我的工作',
    icon: 'mywork',
    roles: ['myjob']
  },
  children: [{
    path: 'awaitWork',
    name: 'AwaitWork',
    component: () => import('@/views/mywork/index'),
    meta: {
      title: '我的待办',
      // icon: 'await',
      roles: ['todo:get']
    }
  }, {
    path: 'overWork',
    name: 'OverWork',
    component: () => import('@/views/mywork/overWork'),
    meta: {
      title: '我的已办',
      // icon: 'overWork',
      roles: ['hasdo:get']
    }
  }]
}

export default myWorkRouter
